import { request }  from '@/axios/request'

//储存当前用户当前模块
export const SetCurrentModel = (parmas) => {
    return request({
        url: '/MenuManager/SetCurrentModel',
        method: 'get',
        data: parmas
    })
}

//获取当前用户当前模块
export const GetCurrentModel = (parmas) => {
    return request({
        url: '/MenuManager/GetCurrentModel',
        method: 'get',
        data: parmas
    })
}

//储存当前用户当前菜单
export const SetCurrentActiveMenu = (parmas) => {
    return request({
        url: '/MenuManager/SetCurrentActiveMenu',
        method: 'get',
        data: parmas
    })
}

//获取当前用户当前菜单
export const GetCurrentActiveMenu = (parmas) => {
    return request({
        url: '/MenuManager/GetCurrentActiveMenu',
        method: 'get',
        data: parmas
    })
}

//储存当前用户当前菜单
export const SetCurrentOpenMenu = (parmas) => {
    return request({
        url: '/MenuManager/SetCurrentOpenMenu',
        method: 'get',
        data: parmas
    })
}

//获取当前用户当前菜单
export const GetCurrentOpenMenu = (parmas) => {
    return request({
        url: '/MenuManager/GetCurrentOpenMenu',
        method: 'get',
        data: parmas
    })
}